import os
from app import create_app
from blog import blog
from apigate import apigate

app = create_app(os.getenv('FLASK_CONFIG') or 'default')

app.register_blueprint(blog, url_prefix='/blog')
app.register_blueprint(apigate, url_prefix='/apigate')

if __name__ == '__main__':
    app.run(host='0.0.0.0')